package com.apexedu.portal.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * Created by janabo on 2014-12-12.
 */
@Entity
@Table(name = "APP_DEPARTMENT")
public class AppDepartment implements Serializable{
    private String id;
    private String name;
    private BigDecimal orderno;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "ORDERNO")
    public BigDecimal getOrderno() {
        return orderno;
    }

    public void setOrderno(BigDecimal orderno) {
        this.orderno = orderno;
    }

    @Override
    public String toString() {
        return "AppDepartment{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", orderno=" + orderno +
                '}';
    }
}
